package cn.credit.loan.dao.authority;

import org.apache.ibatis.annotations.Param;

import cn.credit.loan.entity.Authority;
/**
 * 权限管理员Dao层
 * @author 
 *
 */
public interface AuthorityMapper {
	/**
	 * 权限管理员登录
	 * @param authorityName
	 * @param authorityPwd
	 * @return
	 * @throws Exception
	 */
	public Authority login(@Param("authorityName") String authorityName,
			@Param("authorityPwd") String authorityPwd)throws Exception;
	/**
	 * 权限管理员添加
	 * @param authority
	 * @return
	 * @throws Exception
	 */
	public int authorityAdd(Authority authority)throws Exception;
	/**
	 * 权限管理员更新
	 * @param authority
	 * @return
	 * @throws Exception
	 */
	public int authorityUpdate(Authority authority)throws Exception;
	/**
	 * 权限管理员删除
	 * @param authorityId
	 * @return
	 * @throws Exception
	 */
	public boolean authorityDelete(int authorityId)throws Exception;
}
